/****** Object:  Stored Procedure [dbo].spAccountInsert Script Date: 6/12/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spAccountInsert]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spAccountInsert]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		22/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spAccountInsert]
(
	@ID nvarchar(12),
	@Matkhau nvarchar(30),
	@Hoten nvarchar(35),
	@Diachi nvarchar(30),
	@SoDT nvarchar(15),
	@Email nvarchar(25),
	@Chucvu nvarchar(50),
	@Thongtinkhac nvarchar(300),
	@Role int
)
WITH ENCRYPTION

AS

SET NOCOUNT ON

INSERT INTO [tbl_Account]
(
	[ID],
	[Matkhau],
	[Hoten],
	[Diachi],
	[SoDT],
	[Email],
	[Chucvu],
	[Thongtinkhac],
	[Role]
)
VALUES
(
	@ID,
	@Matkhau,
	@Hoten,
	@Diachi,
	@SoDT,
	@Email,
	@Chucvu,
	@Thongtinkhac,
	@Role
)
GO

--GRANT EXECUTE ON [dbo].[spAccountInsert] TO [sa]
--GO
